This repository was archived by the owner on Oct 21, 2024. It is now read-only.
File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " theseer" ,
3
- "version" : " 3.0.166 " ,
3
+ "version" : " 3.0.167 " ,
4
4
"description" : " A bot that monitors other bots." ,
5
5
"main" : " build/Main.js" ,
6
6
"repository" : " https://github.com/RagnarLothbrok-Odin/TheSeer-Discord.git" ,
Original file line number Diff line number Diff line change 1
1
import { Client , ContextMenu , Discord } from 'discordx' ;
2
- import { ApplicationCommandType , EmbedBuilder , UserContextMenuCommandInteraction } from 'discord.js' ;
2
+ import {
3
+ ApplicationCommandType ,
4
+ EmbedBuilder ,
5
+ PermissionsBitField ,
6
+ UserContextMenuCommandInteraction ,
7
+ } from 'discord.js' ;
3
8
import WatchedBots from '../mongo/schemas/WatchedBots.js' ;
4
9
import { updateActivity } from '../utils/Util.js' ;
5
10
@@ -14,6 +19,7 @@ export class AddContext {
14
19
@ContextMenu ( {
15
20
name : 'Add to monitor list' ,
16
21
type : ApplicationCommandType . User ,
22
+ defaultMemberPermissions : [ PermissionsBitField . Flags . ManageGuild ] ,
17
23
} )
18
24
async userHandler ( interaction : UserContextMenuCommandInteraction , client : Client ) : Promise < void > {
19
25
if ( interaction . targetUser . id === client . user ?. id ) {
Original file line number Diff line number Diff line change 1
1
import { Client , ContextMenu , Discord } from 'discordx' ;
2
- import { ApplicationCommandType , EmbedBuilder , UserContextMenuCommandInteraction } from 'discord.js' ;
2
+ import {
3
+ ApplicationCommandType ,
4
+ EmbedBuilder ,
5
+ PermissionsBitField ,
6
+ UserContextMenuCommandInteraction ,
7
+ } from 'discord.js' ;
3
8
import WatchedBots from '../mongo/schemas/WatchedBots.js' ;
4
9
import { updateActivity } from '../utils/Util.js' ;
5
10
@@ -14,6 +19,7 @@ export class RemoveContext {
14
19
@ContextMenu ( {
15
20
name : 'Remove from monitor list' ,
16
21
type : ApplicationCommandType . User ,
22
+ defaultMemberPermissions : [ PermissionsBitField . Flags . ManageGuild ] ,
17
23
} )
18
24
async userHandler ( interaction : UserContextMenuCommandInteraction , client : Client ) : Promise < void > {
19
25
const status = await WatchedBots . findOne ( { GuildId : interaction . guild ?. id } ) ;
You can’t perform that action at this time.
0 commit comments