Skip to content

Commit 3836d43

Browse files
committed
feat: limit pnj listing to NA guild
1 parent 9927b13 commit 3836d43

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

src/modules/PNJ/commands/Blaise.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, CommandOptions } from 'axoncore';
1+
import { Command, CommandOptions, CommandPermissions } from 'axoncore';
22

33
class Blaise extends Command {
44
constructor(module) {
@@ -20,6 +20,12 @@ class Blaise extends Command {
2020
this.options = new CommandOptions(this, {
2121
argsMin: 0,
2222
} );
23+
24+
this.permissions = new CommandPermissions(this, {
25+
guilds: {
26+
needed: ['444277614346108939'],
27+
},
28+
} );
2329
}
2430

2531
async execute( { msg, args } ) {

src/modules/PNJ/commands/Celeste.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, CommandOptions } from 'axoncore';
1+
import { Command, CommandOptions, CommandPermissions } from 'axoncore';
22

33
class Celeste extends Command {
44
constructor(module) {
@@ -20,6 +20,12 @@ class Celeste extends Command {
2020
this.options = new CommandOptions(this, {
2121
argsMin: 0,
2222
} );
23+
24+
this.permissions = new CommandPermissions(this, {
25+
guilds: {
26+
needed: ['444277614346108939'],
27+
},
28+
} );
2329
}
2430

2531
async execute( { msg, args } ) {

src/modules/PNJ/commands/Racine.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, CommandOptions } from 'axoncore';
1+
import { Command, CommandOptions, CommandPermissions } from 'axoncore';
22

33
class Racine extends Command {
44
constructor(module) {
@@ -20,6 +20,12 @@ class Racine extends Command {
2020
this.options = new CommandOptions(this, {
2121
argsMin: 0,
2222
} );
23+
24+
this.permissions = new CommandPermissions(this, {
25+
guilds: {
26+
needed: ['444277614346108939'],
27+
},
28+
} );
2329
}
2430

2531
async execute( { msg, args } ) {

src/modules/PNJ/commands/Rounard.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, CommandOptions } from 'axoncore';
1+
import { Command, CommandOptions, CommandPermissions } from 'axoncore';
22

33
class Rounard extends Command {
44
constructor(module) {
@@ -20,6 +20,12 @@ class Rounard extends Command {
2020
this.options = new CommandOptions(this, {
2121
argsMin: 0,
2222
} );
23+
24+
this.permissions = new CommandPermissions(this, {
25+
guilds: {
26+
needed: ['444277614346108939'],
27+
},
28+
} );
2329
}
2430

2531
async execute( { msg, args } ) {

src/modules/PNJ/commands/Sarah.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command, CommandOptions } from 'axoncore';
1+
import { Command, CommandOptions, CommandPermissions } from 'axoncore';
22

33
class Sarah extends Command {
44
constructor(module) {
@@ -20,6 +20,12 @@ class Sarah extends Command {
2020
this.options = new CommandOptions(this, {
2121
argsMin: 0,
2222
} );
23+
24+
this.permissions = new CommandPermissions(this, {
25+
guilds: {
26+
needed: ['444277614346108939'],
27+
},
28+
} );
2329
}
2430

2531
async execute( { msg, args } ) {

0 commit comments

Comments
 (0)