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:
@@ -0,0 +1,20 @@
|
||||
|
||||
export class MessageActionRow {
|
||||
/** @type {Object[]} */
|
||||
components;
|
||||
|
||||
addComponent(comp) {
|
||||
if (this.components.length > 5) throw "MAXIMUM SIZE REACHED!";
|
||||
this.components.push(comp);
|
||||
}
|
||||
|
||||
toObj() {
|
||||
const o = {type: 1, components: []};
|
||||
for (const k of this.components) {
|
||||
o.components.push(k.toObj());
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
||||
constructor() { this.components = []; }
|
||||
}
|
||||
Reference in New Issue
Block a user