@bot.command(pass_context=True)
@commands.has_permissions(administrator=True)
async def publish(ctx, arg1, arg2):
chanel = bot.get_channel(arg2)
await chanel.send(arg1)
get_channel принимает на вход аргумент типа int - ID канала.pass_context в discord.py не существует уже два года.@bot.command()
async def cmd(ctx, channel: discord.TextChannel, *, msg: str):
"""Send msg to channel"""
await channel.send(msg)