mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
[nextgen] Add DynamicCardStack
This commit is contained in:
parent
048073b522
commit
4c8a9927ea
15 changed files with 874 additions and 94 deletions
|
@ -180,12 +180,9 @@ module.exports.formatPaginationEmbeds = function(embeds){
|
|||
}
|
||||
|
||||
// Creates a page for our paginator. simple helper so we dont have to do {embeds:[]} every time
|
||||
module.exports.page = function(embed, message = {}){
|
||||
module.exports.page = function(embed, message = {}, metadata = {}){
|
||||
return Object.assign(message, {
|
||||
embeds: [embed]
|
||||
embeds: [embed],
|
||||
_meta: metadata,
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.hexToEmbedColor = (color)=>{
|
||||
return parseInt(color.split("#")[1], 16)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue