-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to discord.js v14 and fixed bugs π₯β€οΈβπ₯
updated to discord.js v14 and fixed bugs π₯β€οΈβπ₯
- Loading branch information
1 parent
707d30a
commit 7e3972b
Showing
15 changed files
with
392 additions
and
183 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,41 @@ | ||
const { | ||
Message, | ||
PermissionFlagsBits, | ||
Client, | ||
EmbedBuilder, | ||
} = require("discord.js"); | ||
|
||
module.exports = { | ||
name: "avatar", | ||
description: "Get Avar Of a User !!", | ||
userPermissions: PermissionFlagsBits.SendMessages, | ||
botPermissions: PermissionFlagsBits.SendMessages, | ||
category: "Misc", | ||
cooldown: 5, | ||
/** | ||
* | ||
* @param {Client} client | ||
* @param {Message} message | ||
* @param {String[]} args | ||
* @param {String} prefix | ||
*/ | ||
run: async (client, message, args, prefix) => { | ||
// Code | ||
let AvatarUrl = message.author.displayAvatarURL({ | ||
extension: "png", | ||
size: 512, | ||
}); | ||
message.reply({ | ||
embeds: [ | ||
new EmbedBuilder() | ||
.setColor("Blurple") | ||
.setAuthor({ | ||
name: `Avatar Of ${message.author.tag}`, | ||
iconURL: AvatarUrl, | ||
}) | ||
.setImage(AvatarUrl) | ||
.setTimestamp(), | ||
], | ||
}); | ||
}, | ||
}; |
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,23 @@ | ||
const { Message, PermissionFlagsBits, Client } = require("discord.js"); | ||
|
||
module.exports = { | ||
name: "ping", | ||
description: "Get Bot Real Ping !!", | ||
userPermissions: PermissionFlagsBits.SendMessages, | ||
botPermissions: PermissionFlagsBits.SendMessages, | ||
category: "Misc", | ||
cooldown: 5, | ||
/** | ||
* | ||
* @param {Client} client | ||
* @param {Message} message | ||
* @param {String[]} args | ||
* @param {String} prefix | ||
*/ | ||
run: async (client, message, args, prefix) => { | ||
// Code | ||
message.reply({ | ||
content: `> Pong \`${client.ws.ping}\``, | ||
}); | ||
}, | ||
}; |
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,41 @@ | ||
const { | ||
CommandInteraction, | ||
ApplicationCommandType, | ||
PermissionFlagsBits, | ||
Client, | ||
EmbedBuilder, | ||
} = require("discord.js"); | ||
|
||
module.exports = { | ||
name: "avatar", | ||
description: `Get Avatar of a User !!`, | ||
userPermissions: PermissionFlagsBits.SendMessages, | ||
botPermissions: PermissionFlagsBits.SendMessages, | ||
category: "Misc", | ||
type: ApplicationCommandType.ChatInput, | ||
/** | ||
* | ||
* @param {Client} client | ||
* @param {CommandInteraction} interaction | ||
*/ | ||
run: async (client, interaction) => { | ||
// Code | ||
let AvatarUrl = interaction.user.displayAvatarURL({ | ||
extension: "png", | ||
size: 512, | ||
}); | ||
interaction.reply({ | ||
embeds: [ | ||
new EmbedBuilder() | ||
.setColor("Blurple") | ||
.setAuthor({ | ||
name: `Avatar Of ${interaction.user.tag}`, | ||
iconURL: AvatarUrl, | ||
}) | ||
.setImage(AvatarUrl) | ||
.setTimestamp(), | ||
], | ||
ephemeral: true, | ||
}); | ||
}, | ||
}; |
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,27 @@ | ||
const { | ||
CommandInteraction, | ||
ApplicationCommandType, | ||
PermissionFlagsBits, | ||
Client, | ||
} = require("discord.js"); | ||
|
||
module.exports = { | ||
name: "ping", | ||
description: `Get Bot Real Ping !!`, | ||
userPermissions: PermissionFlagsBits.SendMessages, | ||
botPermissions: PermissionFlagsBits.SendMessages, | ||
category: "Misc", | ||
type: ApplicationCommandType.ChatInput, | ||
/** | ||
* | ||
* @param {Client} client | ||
* @param {CommandInteraction} interaction | ||
*/ | ||
run: async (client, interaction) => { | ||
// Code | ||
interaction.reply({ | ||
content: `> Pong \`${client.ws.ping}\``, | ||
ephemeral: true, | ||
}); | ||
}, | ||
}; |
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
Oops, something went wrong.