
com.freya02.botcommands.api.commands.application.context.user.GlobalUserEvent Maven / Gradle / Ivy
package com.freya02.botcommands.api.commands.application.context.user;
import com.freya02.botcommands.api.BContext;
import com.freya02.botcommands.internal.BContextImpl;
import net.dv8tion.jda.api.events.interaction.command.UserContextInteractionEvent;
import org.jetbrains.annotations.NotNull;
public class GlobalUserEvent extends UserContextInteractionEvent {
private final BContext context;
public GlobalUserEvent(BContextImpl context, UserContextInteractionEvent event) {
super(event.getJDA(), event.getResponseNumber(), event.getInteraction());
this.context = context;
}
@NotNull
public BContext getContext() {
return context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy