emoji moved to config
This commit is contained in:
parent
c0c1945b2c
commit
da570fc40b
19 changed files with 55 additions and 55 deletions
|
@ -30,11 +30,11 @@ module.exports = class {
|
|||
member = await message.channel.guild.searchMembers(args.join(' '), 2);
|
||||
|
||||
if (member.length === 0) return message.channel.createMessage(
|
||||
`${client.emojis.userError} No users found. Check for mispellings, or ping the user instead.`
|
||||
`${client.config.emojis.userError} No users found. Check for mispellings, or ping the user instead.`
|
||||
);
|
||||
|
||||
if (member.length > 1) return message.channel.createMessage(
|
||||
`${client.emojis.userError} Found more than one user, try refining your search or pinging the user instead.`
|
||||
`${client.config.emojis.userError} Found more than one user, try refining your search or pinging the user instead.`
|
||||
);
|
||||
|
||||
member = member[0];
|
||||
|
|
|
@ -32,11 +32,11 @@ module.exports = class {
|
|||
member = await message.channel.guild.searchMembers(args.join(' '), 2);
|
||||
|
||||
if (member.length === 0) return message.channel.createMessage(
|
||||
`${client.emojis.userError} No users found. Check for mispellings, or ping the user instead.`
|
||||
`${client.config.emojis.userError} No users found. Check for mispellings, or ping the user instead.`
|
||||
);
|
||||
|
||||
if (member.length > 1) return message.channel.createMessage(
|
||||
`${client.emojis.userError} Found more than one user, try refining your search or pinging the user instead.`
|
||||
`${client.config.emojis.userError} Found more than one user, try refining your search or pinging the user instead.`
|
||||
);
|
||||
|
||||
member = member[0];
|
||||
|
|
|
@ -74,13 +74,13 @@ module.exports = class {
|
|||
return message.channel.createMessage({ embed:embed });
|
||||
} else {
|
||||
if (json.message && json.message === 'city not found') {
|
||||
return message.channel.createMessage(`${client.emojis.userError} You provided an invalid city name. Maybe check your spelling?`);
|
||||
return message.channel.createMessage(`${client.config.emojis.userError} You provided an invalid city name. Maybe check your spelling?`);
|
||||
}
|
||||
return message.channel.createMessage(`${client.emojis.botError} API error occured: \`code ${json.cod}: ${json.message}\``);
|
||||
return message.channel.createMessage(`${client.config.emojis.botError} API error occured: \`code ${json.cod}: ${json.message}\``);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
return message.channel.createMessage(`${client.emojis.botError} An error has occured: \`${err.stack}\``);
|
||||
return message.channel.createMessage(`${client.config.emojis.botError} An error has occured: \`${err.stack}\``);
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue