13b41c3026
migrate to typescript 6 remove ytdl feature
22 lines
475 B
TypeScript
22 lines
475 B
TypeScript
import {CallbackCommand} from "../base/callback-command";
|
|
|
|
export class Cancel extends CallbackCommand {
|
|
|
|
text = "❌ Отменить";
|
|
data = "";
|
|
|
|
constructor(text?: string, data?: string) {
|
|
super();
|
|
|
|
this.text = text ?? this.text;
|
|
this.data = data ?? this.data;
|
|
}
|
|
|
|
static withData(data?: string): Cancel {
|
|
return new Cancel("", data);
|
|
}
|
|
|
|
async execute(): Promise<void> {
|
|
return Promise.resolve();
|
|
}
|
|
} |