Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I make a /setprefix Command? #204

Open
Felitendo opened this issue Sep 26, 2023 · 2 comments
Open

How can I make a /setprefix Command? #204

Felitendo opened this issue Sep 26, 2023 · 2 comments

Comments

@Felitendo
Copy link

How can I make a Command /setprefix [PREFIX] wich sets the Prefix to "." or "!" or "?"?

@dreamsndnenmemd
Copy link

The application commands / doesn't load

@UnknownX0001
Copy link

UnknownX0001 commented Oct 4, 2023

this code only supports slash commands, to use a prefix you'll have to make a new if condition in src/events/messageCreate.js and also make a seperate folder for prefix commands (and ofc change the interaction to message, for example: interaction.reply to message.reply)

to make the /setprefix command you'll need to make a new model preferably called guild.js in src/database/models and then add guild id and prefix in it and find the server and its prefix from the databse to change it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants