MCPcopy Create free account
hub / github.com/RTByte/rtbyte / remove

Method remove

src/commands/Admin/conf.js:46–49  ·  view source on GitHub ↗
(message, [key, valueToRemove])

Source from the content-addressed store, hash-verified

44 }
45
46 async remove(message, [key, valueToRemove]) {
47 const entry = this.check(message, key, await message.guild.settings.update(key, valueToRemove, { onlyConfigurable: true, arrayAction: 'remove' }));
48 return message.sendLocale('COMMAND_CONF_UPDATED', [key, message.guild.settings.display(message, entry)]);
49 }
50
51 async reset(message, [key]) {
52 const entry = this.check(message, key, await message.guild.settings.reset(key));

Callers 2

runMethod · 0.45
runMethod · 0.45

Calls 2

updateMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected