-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#patch added
/discord
, updated footer msg, added footer to more cmds
- Loading branch information
Showing
5 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
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,42 @@ | ||
import { | ||
CommandInteraction, | ||
EmbedBuilder, | ||
SlashCommandBuilder, | ||
} from 'discord.js'; | ||
import {Command} from '../interfaces'; | ||
import {EMBED_COLOUR, FOOTER_MESSAGE} from './_components'; | ||
import {config} from '../config'; | ||
|
||
const DISCORD_INVITE = config.DISCORD_INVITE; | ||
|
||
const command: Command = { | ||
data: new SlashCommandBuilder() | ||
.setName('discord') | ||
.setDescription('HellCom Discord invite'), | ||
run: async interaction => { | ||
await interaction.editReply({ | ||
content: DISCORD_INVITE, | ||
embeds: [ | ||
new EmbedBuilder() | ||
.setTitle('Leviathan Alliance - Helldivers 2 Community') | ||
.setDescription( | ||
'HellCom is part of **Leviathan Alliance**! ' + | ||
'\n\n' + | ||
'Leviathan Alliance is a community of like-minded Helldivers who are passionate about Helldivers 2! We welcome every level and skill into our server with open arms. We also built this server knowing that the main Helldivers discord can be hectic and overwhelming, so we hope you can find friendly Helldivers more easily here!' + | ||
'\n\n' + | ||
'You may also see patches for the bot, report bugs or give suggestions __for the bot__. ' + | ||
'If you would like to invite the bot to your own server, you may do so with ' + | ||
'__**[this link (click)](https://discord.com/api/oauth2/authorize?client_id=1213944670288347176&permissions=414464658496&scope=applications.commands%20bot)**__ (you must be a server admin).' + | ||
'\n\n' + | ||
'Thanks for your interest in the project! <3' | ||
) | ||
.setURL(DISCORD_INVITE) | ||
.setFooter({text: FOOTER_MESSAGE}) | ||
.setColor(EMBED_COLOUR) | ||
.setTimestamp(), | ||
], | ||
}); | ||
}, | ||
}; | ||
|
||
export default command; |
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
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