async def say(ctx, channel: typing.Optional[discord.TextChannel], *, text):
"""Send text to specified channel channel""" # строка документации отображается в [p]help
if channel:
await channel.send(text)
else:
await ctx.send(text)
async def say(ctx, *, arg):
if ctx.command.name in ["cmd", "cmdtoo", ...]:
raise commands.NoPrivateMessage
@commands.guild_only
.ru
. 280₽ в год. bot.fetch_members()
:a.__abs__()
abs()
:a = -52
print(abs(a))
is_allowed()
в данном случае уже является декоратором-проверкой: https://discordpy.readthedocs.io/en/stable/ext/com...@is_allowed()
@client.command(aliases = ['123'])
async def displayembed(ctx):