use of net.dv8tion.jda.internal.entities.mixin.channel.attribute.IPermissionContainerMixin in project JDA by DV8FromTheWorld.
the class PermOverrideManagerImpl method getPermissionOverride.
@Nonnull
@Override
public PermissionOverride getPermissionOverride() {
IPermissionContainerMixin<?> channel = (IPermissionContainerMixin<?>) override.getChannel();
PermissionOverride realOverride = channel.getPermissionOverrideMap().get(override.getIdLong());
if (realOverride != null)
override = realOverride;
return override;
}
Aggregations