fix typos
parent
8067a8b348
commit
4bf2311091
|
@ -32,10 +32,10 @@ export default class AddItem extends Command {
|
|||
},
|
||||
});
|
||||
await newAccount.save();
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Added langauge code ${args[0]} to profile.***`);
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Added language code ${args[0]} to profile.***`);
|
||||
}
|
||||
await account.updateOne({ $addToSet: { 'additional.langs': args[0].split('-')[1] } });
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Added langauge code ${args[0]} to profile.***`);
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Added language code ${args[0]} to profile.***`);
|
||||
}
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.ERROR} Invalid language code.***`);
|
||||
} catch (err) {
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class DelItem extends Command {
|
|||
return message.channel.createMessage(`***${this.client.util.emojis.ERROR} You don't have any languages to remove.***`);
|
||||
}
|
||||
await account.updateOne({ $pull: { 'additional.langs': args[0].split('-')[1] } });
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Removed langauge code ${args[0]} to profile.***`);
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.SUCCESS} Removed language code ${args[0]} to profile.***`);
|
||||
}
|
||||
return message.channel.createMessage(`***${this.client.util.emojis.ERROR} Invalid language code.***`);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue