Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/greys-bots/sheep
Browse files Browse the repository at this point in the history
  • Loading branch information
greysdawn committed Dec 29, 2023
2 parents 478a74e + 0c2e26e commit f79a14d
Show file tree
Hide file tree
Showing 4 changed files with 406 additions and 42 deletions.
2 changes: 1 addition & 1 deletion commands/color/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Command extends SlashCommand {

async execute(ctx) {
var cfg = await this.#stores.configs.get(ctx.guild.id);
if(cfg && cfg.role_mode == 1) return "Can't link colors in server-based color mode!";
if(cfg?.role_mode == 1) return "Can't link colors in server-based color mode!";

var role = await this.#stores.userRoles.get(ctx.guild.id, ctx.user.id);
if(!role) return "You don't have a role to link!";
Expand Down
2 changes: 1 addition & 1 deletion commands/color/unlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Command extends SlashCommand {

async execute(ctx) {
var cfg = await this.#stores.configs.get(ctx.guild.id);
if(cfg && cfg.role_mode == 1) return "Can't link or unlink colors in server-based color mode!";
if(cfg?.role_mode == 1) return "Can't link or unlink colors in server-based color mode!";
var user = ctx.options.getUser('user');

var role = await this.#stores.userRoles.get(ctx.guild.id, ctx.user.id);
Expand Down
File renamed without changes.
Loading

0 comments on commit f79a14d

Please sign in to comment.