mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor: change xID to xId (#6036)
* refactor: change `xID` to `xId` * Update src/managers/MessageManager.js Co-authored-by: Noel <buechler.noel@outlook.com> Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -13,9 +13,9 @@ client.on('ready', async () => {
|
||||
{ name: 'afk channel', type: 'voice', id: 0 },
|
||||
{ name: 'system-channel', id: 1 },
|
||||
],
|
||||
afkChannelID: 0,
|
||||
afkChannelId: 0,
|
||||
afkTimeout: 60,
|
||||
systemChannelID: 1,
|
||||
systemChannelId: 1,
|
||||
});
|
||||
console.log(guild.id);
|
||||
assert.strictEqual(guild.afkChannel.name, 'afk channel');
|
||||
|
||||
@@ -245,8 +245,8 @@ client.on('messageReactionRemove', (reaction, user) => {
|
||||
|
||||
client.on('messageCreate', m => {
|
||||
if (m.content.startsWith('#reactions')) {
|
||||
const mID = m.content.split(' ')[1];
|
||||
m.channel.messages.fetch(mID).then(rM => {
|
||||
const mId = m.content.split(' ')[1];
|
||||
m.channel.messages.fetch(mId).then(rM => {
|
||||
for (const reaction of rM.reactions.cache.values()) {
|
||||
reaction.users.fetch().then(users => {
|
||||
m.channel.send(
|
||||
|
||||
@@ -13,7 +13,7 @@ client
|
||||
console.log('no templates');
|
||||
} else {
|
||||
const guild = await templates.first().createGuild('guild name');
|
||||
console.log(`created guild with ID ${guild.id}`);
|
||||
console.log(`created guild with id ${guild.id}`);
|
||||
await guild.delete();
|
||||
console.log('deleted guild');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user