update permissions

This commit is contained in:
derpystuff 2023-07-13 11:54:15 +02:00
parent 80f2cf0a04
commit 8883a4c595
58 changed files with 58 additions and 58 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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, {

View file

@ -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, {

View file

@ -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{

View file

@ -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)