add Discord4J Wrapper #14
@ -71,7 +71,7 @@ public class Discord4JContextObjectProvider implements ContextObjectProvider {
|
|||||||
ComponentInteractionEvent componentInteractionEvent = (ComponentInteractionEvent) context;
|
ComponentInteractionEvent componentInteractionEvent = (ComponentInteractionEvent) context;
|
||||||
switch (type.getName()) {
|
switch (type.getName()) {
|
||||||
case "discord4j.core.object.entity.Message":
|
case "discord4j.core.object.entity.Message":
|
||||||
return componentInteractionEvent.getMessage();
|
return componentInteractionEvent.getMessage().orElse(null);
|
||||||
default:
|
default:
|
||||||
return getInteractionContextObject(context, type);
|
return getInteractionContextObject(context, type);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user