use camel case properly

This commit is contained in:
Emily 2022-12-10 00:13:08 +11:00
parent dfc1674bad
commit b561f80835
3 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ module.exports = class {
const blocklist = data.guild.blocklist;
if (action === 'add') {
if (member.id === message.guild.ownerID) return message.channel.send(
if (member.id === message.guild.ownerId) return message.channel.send(
`${client.config.emojis.userError} You can't block the owner, silly!`
);
@ -96,7 +96,7 @@ module.exports = class {
}
if (action === 'remove') {
if (client.functions.highestRole(member).position >= client.functions.highestRole(message.member).position && message.member.id !== message.guild.ownerID) {
if (client.functions.highestRole(member).position >= client.functions.highestRole(message.member).position && message.member.id !== message.guild.ownerId) {
return message.channel.send(`${client.config.emojis.userError} This user has a higher role than you, you can't remove them to the blocklist!`);
}

View file

@ -24,7 +24,7 @@ module.exports = class {
.setTitle(guild.name)
.setThumbnail(guild.iconURL)
.addField('ID', guild.id, true)
.addField('Owner', `<@${guild.ownerID}>`, true)
.addField('Owner', `<@${guild.ownerId}>`, true)
.addField('Region', guild.region.toProperCase(), true)
.addField('Boosts', `${guild.premiumSubscriptionCount} (Level ${guild.premiumTier})`, true)
.addField('Member Count (Approximate)', `${guild.memberCount} (${guild.memberCount - guild.members.filter(member => member.user.bot).length} humans, ${guild.members.filter(member => member.user.bot).length} bots)`, true)

View file

@ -47,7 +47,7 @@ module.exports = class {
const badges = [];
if (client.config.ownerIDs.includes(member.id)) badges.push('<:Woomy_Developer:816822318289518622> ');
if (member.id === member.guild.ownerID) badges.push('<:owner:685703193694306331>');
if (member.id === member.guild.ownerId) badges.push('<:owner:685703193694306331>');
if (member.bot) badges.push('<:bot:686489601678114859>');
const roles = [];