We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d804d8c commit 51a0e25Copy full SHA for 51a0e25
listeners/guildCreate.js
@@ -6,22 +6,6 @@ module.exports = {
6
place: "guild",
7
options: undefined,
8
async run(client, guild) {
9
- const first_channel = guild.channels.cache.find(channel => channel.type === "GUILD_TEXT" && channel.permissionsFor(guild.members.me).has("SEND_MESSAGES"));
10
- let message;
11
- if (first_channel) {
12
- try {
13
- message = await first_channel.send({ content: "Deploying commands,..." });
14
- } catch (error) {
15
- console.log(error);
16
- }
17
18
await client.commands.get("deploy").deploy(client, guild);
19
- if (message) {
20
21
- await message.edit("Deployed !");
22
23
24
25
26
}
27
};
0 commit comments