
If you are using Heateor Social Login plugin, add the URL If you are using Super Socializer plugin, add the URL Click Add Redirect button in the Redirects section.Navigate to Oauth2 section from the left sidebar.These details will be shown to the users using Discord login at your website Privacy Policy URL: URL stating privacy policy of your website Terms of Service URL: URL stating terms of service of your website Ideally, it should be the name of your website/business at which you will integrate the Discord loginĪpp Icon: (Optional) Upload an icon representing your website/businessĭescription: Description of the website where you are implementing Discord login You will need to sync your commands with discord whenever you create a new one or change their syntax (parameters, name, descriptions).If you are using Super Socializer plugin or Heateor Social Login plugin for Social Login, follow the steps mentioned below to generate Discord Client ID and integrate Discord Login with your WordPress website.

These descriptions will automatically be used by the application commands I'm using docstrings to describe the function of the command and arguments.Note that I used commands.Range to ensure that num_messages will be a larger integer that 1.Num_messages: the amount of messages to deleteĭeleted = await (limit=num_messages)Įmbed = discord.Embed(description=f"✅ Deleted messages.")Īwait ctx.reply(ephemeral=True, embed=embed) def purge(ctx: commands.Context, num_messages: commands.Range):

If you want to create an application command, also known as Slash Command, you should use decorator or to create a command hybrid (will work for both text and interaction using /).

The decorator creates a text command (those that are triggered by messages using the bot prefix).
