mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -301,7 +301,7 @@ client.on('guildCreate', async guild => {
|
||||
}
|
||||
const joinLeaveChannel = await client.fetchJoinLeaveChannel();
|
||||
if (joinLeaveChannel) {
|
||||
if (!guild.members.cache.has(guild.ownerID)) await guild.members.fetch(guild.ownerID);
|
||||
const owner = await guild.fetchOwner();
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x7CFC00)
|
||||
.setThumbnail(guild.iconURL({ format: 'png' }))
|
||||
@@ -309,7 +309,7 @@ client.on('guildCreate', async guild => {
|
||||
.setFooter(`ID: ${guild.id}`)
|
||||
.setTimestamp()
|
||||
.addField('❯ Members', formatNumber(guild.memberCount))
|
||||
.addField('❯ Owner', guild.owner.user.tag);
|
||||
.addField('❯ Owner', owner.user.tag);
|
||||
await joinLeaveChannel.send({ embed });
|
||||
}
|
||||
});
|
||||
|
||||
+1
-2
@@ -101,8 +101,7 @@ module.exports = class CommandClient extends Client {
|
||||
}
|
||||
const throttleAmount = command.throttles.get(msg.author.id);
|
||||
if (throttleAmount && throttleAmount.usages >= command.throttling.usages) {
|
||||
const timeout = command._timeouts.get(msg.author.id);
|
||||
const timeLeft = Math.round((timeout.timeFinish - Date.now()) / 1000);
|
||||
const timeLeft = Math.round((throttleAmount.timeFinish - Date.now()) / 1000);
|
||||
await msg.reply(`Please wait ${timeLeft} seconds before using the \`${command.name}\` command again.`);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user