【发布时间】:2021-07-30 17:32:16
【问题描述】:
我想检查我何时使用命令,我发送了哪个对象,例如用户/成员、频道、角色
@foo.command()
async def define(ctx, arg) #the arg as id, mention or name
if arg == discord.Role:
await ctx.send("its a role")
elif == discord.Channel:
await ctx.send("its an channel")
# more checks
【问题讨论】:
标签: python python-3.x discord.py