@antibot/interactions
Version:
## 🗡️ An interactions library made for Discord interactions
58 lines • 1.3 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Command = void 0;
class Command {
Type(type) {
this.type = type;
return this;
}
Name(name) {
this.name = name;
return this;
}
Description(description) {
this.description = description;
return this;
}
Permissions(...permissions) {
this.default_member_permissions = String(permissions);
return this;
}
ForGuild(id) {
this.guild_id = id;
return this;
}
Options(options) {
this.options = options;
return this;
}
Localization(options) {
this.name_localizations = options;
return this;
}
DescriptionLocalization(options) {
this.description_localizations = options;
return this;
}
ForDMS(dms) {
this.dm_permission = dms;
return this;
}
IntegrationTypes(types) {
this.integration_types = types;
return this;
}
ContextTypes(contexts) {
this.contexts = contexts;
return this;
}
ForNSFW(nsfw) {
this.nsfw = nsfw;
return this;
}
toJSON() {
return { ...this };
}
}
exports.Command = Command;
//# sourceMappingURL=Command.js.map