mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-06-06 00:07:01 +00:00
added message select menus
This commit is contained in:
@@ -1,4 +1,36 @@
|
||||
// https://github.com/discordjs/discord-api-types/blob/main/rest/v10/index.ts
|
||||
// https://discord.com/developers/docs/interactions/message-components
|
||||
import {MessageButtonStyles} from './ButtonStyles.js';
|
||||
|
||||
export class Button {
|
||||
/** @type {MessageButtonStyles} */
|
||||
style;
|
||||
|
||||
/** @type {String} */
|
||||
label;
|
||||
|
||||
/** @type {{name: String, id: String, animated: Boolean}} */
|
||||
emoji;
|
||||
|
||||
/** @type {String} */
|
||||
custom_id;
|
||||
|
||||
/** @type {String} */
|
||||
url;
|
||||
|
||||
/** @type {String} */
|
||||
label;
|
||||
|
||||
/** @type {Boolean} */
|
||||
disabled;
|
||||
|
||||
toObj() {
|
||||
var obj = {type: 2};
|
||||
for (const i in this) {
|
||||
obj[i] = this[i];
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
constructor() {}
|
||||
}
|
||||
Reference in New Issue
Block a user