discord js restart command code example
Example: how to make my discord bot shut down with a command
#this was in a cog
@commands.command()
@commands.is_owner()
async def shutdown(self, ctx):
await ctx.bot.logout()
#this was in a cog
@commands.command()
@commands.is_owner()
async def shutdown(self, ctx):
await ctx.bot.logout()