Update changes requested
This commit is contained in:
parent
c4b5d9671b
commit
6b77527fa2
1 changed files with 7 additions and 1 deletions
|
@ -33,6 +33,11 @@ export default class Rules extends Command {
|
|||
|
||||
const embeds: EmbedBuilder[] = [];
|
||||
|
||||
if (rules.length == 0) {
|
||||
await interaction.reply({ content: "No rules have been supplied within code base for this server.", ephemeral: true });
|
||||
return;
|
||||
}
|
||||
|
||||
rules.forEach(rule => {
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(EmbedColours.Ok)
|
||||
|
@ -53,6 +58,7 @@ export default class Rules extends Command {
|
|||
const channel = interaction.channel;
|
||||
|
||||
if (!channel) {
|
||||
await interaction.reply({ content: "Channel not found.", ephemeral: true });
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue