Interface GuildGroup
- All Superinterfaces:
Group
- All Known Subinterfaces:
NamedGuildGroup
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A group whose membership is defined at the guild level or higher (i.e. the channel is
not taken into account).
- Since:
- 1.0
- Version:
- 1.0
- API Note:
- Despite the name, implementations of this interface do not need to take the guild into account for determining membership; they only cannot use the channel.
-
Method Summary
Modifier and TypeMethodDescriptionbelongs(AccessContext context) Determines whether the user in the given context belongs to this group.belongs(ChannelAccessContext context) Determines whether the user in the given context belongs to this group.
-
Method Details
-
belongs
Determines whether the user in the given context belongs to this group.- Parameters:
context- The access context being checked.- Returns:
- A Mono that issues
trueif the user belongs to this group under the context, orfalseotherwise. - Implementation Requirements:
- Implementations should prefer using the monos provided by the context directly instead of obtaining them through other means (such as through the client), as the context is optimized when possible to reuse existing instances instead of issuing new API calls.
-
belongs
Description copied from interface:GroupDetermines whether the user in the given context belongs to this group.- Specified by:
belongsin interfaceGroup- Parameters:
context- The access context being checked.- Returns:
- A Mono that issues
trueif the user belongs to this group under the context, orfalseotherwise. - Implementation Requirements:
- Delegates to
belongs(AccessContext).
-