mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-14 00:53:06 -04:00
update permissions
This commit is contained in:
parent
80f2cf0a04
commit
8883a4c595
58 changed files with 58 additions and 58 deletions
|
@ -111,7 +111,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'help [<command>]'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context, args) => {
|
||||
if(args.command){
|
||||
await context.triggerTyping()
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'ping'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
ping = await context.client.ping()
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'privacy'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context) => {
|
||||
return await editOrReply(context,
|
||||
createEmbed("default", context, {
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'shard'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context) => {
|
||||
return await editOrReply(context,
|
||||
createEmbed("default", context, {
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'stats'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
try{
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'undo [<amount (1-5)>]'
|
||||
},
|
||||
permissionsClient: [Permissions.SEND_MESSAGES, Permissions.EMBED_LINKS],
|
||||
permissionsClient: [Permissions.SEND_MESSAGES, Permissions.EMBED_LINKS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context, args) => {
|
||||
try{
|
||||
if(typeof(args.amount) == "string") args.amount = parseInt(args.amount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue