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

Method remove

src/commands/User/userconf.js:43–46  ·  view source on GitHub ↗
(message, [key, ...valueToRemove])

Source from the content-addressed store, hash-verified

41 }
42
43 async remove(message, [key, ...valueToRemove]) {
44 const status = await message.author.settings.update(key, valueToRemove.join(' '), message.guild, { avoidUnconfigurable: true, action: 'remove' });
45 return this.check(message, key, status) || message.sendLocale('COMMAND_CONF_UPDATED', [key, message.author.settings.resolveString(message, status.updated[0].piece)]);
46 }
47
48 async reset(message, [key]) {
49 const status = await message.author.settings.reset(key, true);

Callers

nothing calls this directly

Calls 3

updateMethod · 0.80
joinMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected