public interface GuildChannel extends Channel
Guild
.Channel.Type
Modifier and Type | Method and Description |
---|---|
default Mono<Void> |
addMemberOverwrite(Snowflake memberId,
PermissionOverwrite overwrite)
Requests to add a permission overwrite for the given member.
|
Mono<Void> |
addMemberOverwrite(Snowflake memberId,
PermissionOverwrite overwrite,
String reason)
Requests to add a permission overwrite for the given member while optionally specifying a reason.
|
default Mono<Void> |
addRoleOverwrite(Snowflake roleId,
PermissionOverwrite overwrite)
Requests to add a permission overwrite for the given role.
|
Mono<Void> |
addRoleOverwrite(Snowflake roleId,
PermissionOverwrite overwrite,
String reason)
Requests to add a permission overwrite for the given role while optionally specifying a reason.
|
Mono<PermissionSet> |
getEffectivePermissions(Snowflake memberId)
Gets the permissions for the given member, taking into account permission overwrites in this channel.
|
Mono<Guild> |
getGuild()
Requests to retrieve the guild this channel is associated to.
|
Snowflake |
getGuildId()
Gets the ID of the guild this channel is associated to.
|
String |
getName()
Gets the name of the channel.
|
Optional<ExtendedPermissionOverwrite> |
getOverwriteForMember(Snowflake memberId)
Gets the permission overwrite targeting the given member.
|
Optional<ExtendedPermissionOverwrite> |
getOverwriteForRole(Snowflake roleId)
Gets the permission overwrite targeting the given role.
|
Set<ExtendedPermissionOverwrite> |
getPermissionOverwrites()
Gets the permission overwrites for this channel.
|
Mono<Integer> |
getPosition()
Requests to retrieve the position of the channel relative to other channels in the guild.
|
int |
getRawPosition()
Gets the raw position of the channel as exposed by Discord.
|
delete, delete, getMention, getType
getClient
Snowflake getGuildId()
Set<ExtendedPermissionOverwrite> getPermissionOverwrites()
Optional<ExtendedPermissionOverwrite> getOverwriteForMember(Snowflake memberId)
memberId
- The ID of the member to get the overwrite for.Optional<ExtendedPermissionOverwrite> getOverwriteForRole(Snowflake roleId)
roleId
- The ID of the role to get the overwrite for.Mono<PermissionSet> getEffectivePermissions(Snowflake memberId)
memberId
- The ID of the member to get permissions for.String getName()
int getRawPosition()
Mono<Integer> getPosition()
Mono
where, upon successful completion, emits the position of the channel. If an error is
received, it is emitted through the Mono
.default Mono<Void> addMemberOverwrite(Snowflake memberId, PermissionOverwrite overwrite)
memberId
- The ID of the member to add the overwrite for.overwrite
- The overwrite to add.Mono
where, upon successful completion, emits nothing; indicating the guild has been deleted.
If an error is received, it is emitted through the Mono
.Mono<Void> addMemberOverwrite(Snowflake memberId, PermissionOverwrite overwrite, @Nullable String reason)
memberId
- The ID of the member to add the overwrite for.overwrite
- The overwrite to add.reason
- The reason, if present.Mono
where, upon successful completion, emits nothing; indicating the guild has been deleted.
If an error is received, it is emitted through the Mono
.default Mono<Void> addRoleOverwrite(Snowflake roleId, PermissionOverwrite overwrite)
roleId
- The ID of the role to add the overwrite for.overwrite
- The overwrite to add.Mono
where, upon successful completion, emits nothing; indicating the guild has been deleted.
If an error is received, it is emitted through the Mono
.Mono<Void> addRoleOverwrite(Snowflake roleId, PermissionOverwrite overwrite, @Nullable String reason)
roleId
- The ID of the role to add the overwrite for.overwrite
- The overwrite to add.reason
- The reason, if present.Mono
where, upon successful completion, emits nothing; indicating the guild has been deleted.
If an error is received, it is emitted through the Mono
.