Skip to content

Commit 51a0e25

Browse files
committed
fix(guildCreate): remove message sending
1 parent d804d8c commit 51a0e25

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

listeners/guildCreate.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ module.exports = {
66
place: "guild",
77
options: undefined,
88
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-
}
189
await client.commands.get("deploy").deploy(client, guild);
19-
if (message) {
20-
try {
21-
await message.edit("Deployed !");
22-
} catch (error) {
23-
console.log(error);
24-
}
25-
}
2610
}
2711
};

0 commit comments

Comments
 (0)