Skip to content

Commit

Permalink
Remove duplicated MessageChannelMixin#sendMessageComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Apr 23, 2024
1 parent f687c44 commit a1a3954
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,24 +184,6 @@ default MessageCreateAction sendMessagePoll(@Nonnull MessagePollData poll)
return MessageChannelUnion.super.sendMessagePoll(poll);
}

@Nonnull
@Override
default MessageCreateAction sendMessageComponents(@Nonnull Collection<? extends LayoutComponent> components)
{
checkCanAccessChannel();
checkCanSendMessage();
return MessageChannelUnion.super.sendMessageComponents(components);
}

@Nonnull
@Override
default MessageCreateAction sendMessageComponents(@Nonnull LayoutComponent component, @Nonnull LayoutComponent... other)
{
checkCanAccessChannel();
checkCanSendMessage();
return MessageChannelUnion.super.sendMessageComponents(component, other);
}

@Nonnull
@CheckReturnValue
default MessageCreateAction sendMessage(@Nonnull MessageCreateData msg)
Expand Down

0 comments on commit a1a3954

Please sign in to comment.