📌  相关文章
📜  检查消息是否在 dm discord.py - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:32.805000             🧑  作者: Mango

代码示例1
@client.command()
async def check(ctx):
    if ctx.channel.type == discord.ChannelType.private:
        await ctx.send("Message is in dm")
    else:
          await ctx.send("Message is not in dm")

# watch cocomelon :)