enhancement(lint): Fix lint errors for src/commands/joinchannel.ts

Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2024-10-26 21:27:48 +00:00 committed by GitHub
parent 0cafe74b74
commit 4c2510aa80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,25 +1,25 @@
import { App } from "@slack/bolt";
import { Command, onlyForMe } from "../modules/BaseCommand";
export default class Ping implements Command {
name: string;
description: string;
constructor() {
this.name = `/joinneonschannel`;
this.description = `Join Neons channel`;
}
run(app: App) {
// app.command()
app.command(this.name, async ({ command, ack, respond }) => {
// const stamp = Date.now();
await ack();
if (onlyForMe(command.user_id))
return respond(`:x: you are the channel owner.`);
app.client.conversations.invite({
channel: "C07R8DYAZMM",
users: command.user_id
})
});
}
}
import { App } from "@slack/bolt";
import { Command, onlyForMe } from "../modules/BaseCommand";
export default class Ping implements Command {
name: string;
description: string;
constructor() {
this.name = `/joinneonschannel`;
this.description = `Join Neons channel`;
}
run(app: App) {
// app.command()
app.command(this.name, async ({ command, ack, respond }) => {
// const stamp = Date.now();
await ack();
if (onlyForMe(command.user_id))
return respond(`:x: you are the channel owner.`);
app.client.conversations.invite({
channel: "C07R8DYAZMM",
users: command.user_id,
});
});
}
}