How to remove the need of non-nullish operator in this code?
if (
!guild.members
.me!.permissionsIn(interaction.channel as GuildChannelResolvable)
.has('CreatePublicThreads')
) {
return interaction.editReply(...);
}
I am using interaction.inCachedGuild() typeguard also but still this issue happens