mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-14 01:00:05 +08:00
merge upstream/main
This commit is contained in:
@@ -64,6 +64,7 @@ async def log_channel(ctx: lightbulb.SlashContext) -> None:
|
||||
conn: Connection = ctx.bot.d.db
|
||||
assert ctx.guild_id is not None # `guild_only` check
|
||||
assert isinstance(channel, hikari.PermissibleGuildChannel)
|
||||
type(channel).mro()
|
||||
|
||||
# Check if the bot can send messages in that channel
|
||||
assert (me := ctx.bot.get_me()) is not None # non-None after `StartedEvent`
|
||||
|
||||
Reference in New Issue
Block a user