Cómo hacer que mi bot de discordia se apague con un comando

#this was in a cog
@commands.command()
@commands.is_owner()
  async def shutdown(self, ctx):
     await ctx.bot.logout()
Meaty Boi