def is_public(self, ctx, channel: discord.TextChannel=None):
"""
Checks if a channel is public.
This command is in the Modlog cog because the modlog does not process message edit and
delete events for private channels.
If you have turned 'log_all_message_events' on, this will always say public.
"""
channel = channel if channel else ctx.channel
public = f'{channel.mention} {{}} public to @\u200beveryone.'
await ctx.send(public.format('is' if await is_publicly_visible(self.bot, channel) else '**is not**'))
评论列表
文章目录