Skip to content

Commit ee2af04

Browse files
committed
moving files to make it easier to develop
1 parent d7b762c commit ee2af04

8 files changed

Lines changed: 33 additions & 24 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
ButtonStyle,
88
MessageActionRowComponentBuilder
99
} from "discord.js";
10-
import { Command } from "../../../interfaces/Commands";
11-
import { AllyClient } from "../../../interfaces/AllyClient";
12-
import {Embeds} from "../../../utility/Embeds";
10+
import { Command } from "../../interfaces/Commands";
11+
import { AllyClient } from "../../interfaces/AllyClient";
12+
import {Embeds} from "../../utility/Embeds";
1313

1414
export const SlashCommand: Command = {
1515
name: "help",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder,
55
} from "discord.js";
6-
import {AllyClient} from "../../../interfaces/AllyClient";
7-
import {Command} from "../../../interfaces/Commands";
6+
import {AllyClient} from "../../interfaces/AllyClient";
7+
import {Command} from "../../interfaces/Commands";
88

99
export const SlashCommand: Command = {
1010
name: "ping",
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder,
55
} from "discord.js";
6-
import { AllyClient } from "../../../interfaces/AllyClient";
7-
import { Command } from "../../../interfaces/Commands";
8-
import {Embeds} from "../../../utility/Embeds";
6+
import { AllyClient } from "../../interfaces/AllyClient";
7+
import { Command } from "../../interfaces/Commands";
8+
import { Embeds } from "../../utility/Embeds";
99

1010
export const SlashCommand: Command = {
1111
name: "ban",
@@ -16,6 +16,16 @@ export const SlashCommand: Command = {
1616
let banReason = interaction.options.get("reason").value as string;
1717
let guild = interaction.guild;
1818

19+
console.log(user.bot);
20+
if (user.bot) {
21+
let embed = new Embeds()
22+
.setTitle("Unable to ban bots")
23+
.setDescription("Bots cannot be banned, only kicked.");
24+
25+
interaction.reply({embeds: [embed]});
26+
return;
27+
}
28+
1929
guild.members
2030
.ban(user, {
2131
reason: banReason,
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder,
55
} from "discord.js";
6-
import {AllyClient} from "../../../interfaces/AllyClient";
7-
import {Command} from "../../../interfaces/Commands";
8-
import {Channel} from "node:diagnostics_channel";
6+
import {AllyClient} from "../../interfaces/AllyClient";
7+
import {Command} from "../../interfaces/Commands";
98

109
export const SlashCommand: Command = {
1110
name: "lock",
1211
description: "Places a channel on lockdown",
1312
moduleName: "Moderation",
1413
run: (client: AllyClient, interaction: CommandInteraction) => {
15-
let channel = interaction.options.get("Channel").channel;
14+
let channel = interaction.options.get("channel").channel;
1615
interaction.reply("test");
1716
},
1817
command: new SlashCommandBuilder()
1918
.setName("lock")
2019
.setDescription("Places a channel on lockdown")
2120
.addChannelOption((option) => {
2221
return option
23-
.setName("Channel")
22+
.setName("channel")
2423
.setDescription("Channel inputted here will be locked")
2524
.setRequired(false)
2625
})
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder,
55
} from "discord.js";
6-
import { AllyClient } from "../../../interfaces/AllyClient";
7-
import { Command } from "../../../interfaces/Commands";
8-
import {Embeds} from "../../../utility/Embeds";
6+
import { AllyClient } from "../../interfaces/AllyClient";
7+
import { Command } from "../../interfaces/Commands";
8+
import {Embeds} from "../../utility/Embeds";
99
const MIN_IN_MS = 60000;
1010
const MAX_TIME = 35791;
1111

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder,
55
} from "discord.js";
6-
import { AllyClient } from "../../../interfaces/AllyClient";
7-
import { Command } from "../../../interfaces/Commands";
8-
import {Embeds} from "../../../utility/Embeds";
6+
import { AllyClient } from "../../interfaces/AllyClient";
7+
import { Command } from "../../interfaces/Commands";
8+
import {Embeds} from "../../utility/Embeds";
99

1010
export const SlashCommand: Command = {
1111
name: "unban",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
PermissionFlagsBits,
44
SlashCommandBuilder
55
} from "discord.js";
6-
import { AllyClient } from "../../../interfaces/AllyClient";
7-
import { Command } from "../../../interfaces/Commands";
8-
import {Embeds} from "../../../utility/Embeds";
6+
import { AllyClient } from "../../interfaces/AllyClient";
7+
import { Command } from "../../interfaces/Commands";
8+
import {Embeds} from "../../utility/Embeds";
99

1010
export const SlashCommand: Command = {
1111
name: "unmute",

src/modules/admin/listeners/WelcomeMessage.ts renamed to src/listeners/WelcomeMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {Listeners} from "../../../interfaces/Listeners";
2-
import {AllyClient} from "../../../interfaces/AllyClient";
1+
import {Listeners} from "../interfaces/Listeners";
2+
import {AllyClient} from "../interfaces/AllyClient";
33
import {Events, GuildMember, SendableChannels, TextBasedChannel} from "discord.js";
44

55
export const Listener: Listeners<Events.GuildMemberAdd> = {

0 commit comments

Comments
 (0)