-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add help command for those who may need it
- Loading branch information
1 parent
c762228
commit d483bba
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/net/cybercake/discordmusicbot/commands/list/Help.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.cybercake.discordmusicbot.commands.list; | ||
|
||
import net.cybercake.discordmusicbot.commands.Command; | ||
import net.cybercake.discordmusicbot.constant.Colors; | ||
import net.dv8tion.jda.api.EmbedBuilder; | ||
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; | ||
|
||
public class Help extends Command { | ||
|
||
public Help() { | ||
super( | ||
"help", "Contact information for the bot developer." | ||
); | ||
this.aliases = new String[]{"contact"}; | ||
} | ||
|
||
@Override | ||
public void command(SlashCommandInteractionEvent event) { | ||
event.replyEmbeds( | ||
new EmbedBuilder() | ||
.setTitle("Need help?") | ||
.setDescription("Contact the bot developer, CyberedCake, with the following information:") | ||
.addField("Discord", "cyberedcake (<@351410272256262145>)", true) | ||
.addField("X (Twitter)", "[@CyberedCake](https://x.com/CyberedCake)", true) | ||
.setColor(Colors.CONTACT.get()) | ||
.build() | ||
).queue(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters