mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
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:
parent
0cafe74b74
commit
4c2510aa80
1 changed files with 25 additions and 25 deletions
|
|
@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue