Skip to content

6) Prefixed Slash Commands

Oğuzhan edited this page Jul 21, 2022 · 4 revisions

This feature lets you to make slash commands usable with prefix!

Creation of the file is same as slash commands.

Now you can just add your in-file config and start coding!

In-file config properties

Include the config properties from slash commands.

prefix-name

This should be defined in your in-file config if you want prefixed command to work.

This will be used while handling the prefixed command.

Example situation: If your prefix is ! and your command's prefix name is hello whenever someone types !hello to a text channel that your bot can see this command file will be triggered.

prefix-enabled

This is an optional property and false by default.

If you want your command to get triggered by using it adds this property.

prefix-dmAllowed

This is an optional property and false by default.

If you want your prefixed command to be able to run in DMs add this property.

prefix-botAllowed

This is an optional property and false by default.

If you want your prefixed command to be able to run by bots add this property.

External variables

Include the external variables from slash commands.