Skip to content

Commit

Permalink
edit: Update permCheck.ts
Browse files Browse the repository at this point in the history
Remove ALL destructures `({ ctx })` --> `(ctx)`
  • Loading branch information
Peter-MJ-Parker authored Jul 8, 2024
1 parent 17205d7 commit 1d99cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/permCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function subGroups(opts: BaseOptions[]) {
}

function subcommands(opts: BaseOptions[]) {
return CommandControlPlugin<CommandType.Slash>(async ({ ctx }) => {
return CommandControlPlugin<CommandType.Slash>(async (ctx) => {
if (ctx.guild === null) {
await ctx.reply({
content: "This command cannot be used in DM's!",
Expand Down Expand Up @@ -163,7 +163,7 @@ function subcommands(opts: BaseOptions[]) {
});
}
function options(opts: BaseOptions[]) {
return CommandControlPlugin<CommandType.Slash>(async ({ ctx }) => {
return CommandControlPlugin<CommandType.Slash>(async (ctx) => {
if (ctx.guild === null) {
await ctx.reply({
content: "This command cannot be used in DM's!",
Expand Down

0 comments on commit 1d99cbf

Please sign in to comment.