mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
remove pride commands
This commit is contained in:
parent
cec155bfab
commit
e2ece10c13
2 changed files with 0 additions and 89 deletions
|
@ -1,46 +0,0 @@
|
|||
const { prideborder } = require("#api");
|
||||
|
||||
const { createEmbed } = require("#utils/embed");
|
||||
const { editOrReply } = require("#utils/message");
|
||||
|
||||
const { InteractionCallbackTypes, ApplicationCommandTypes } = require('detritus-client/lib/constants');
|
||||
|
||||
module.exports = {
|
||||
name: 'Create Pride Avatar 🌈',
|
||||
type: ApplicationCommandTypes.USER,
|
||||
contexts: [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
integrationTypes: [
|
||||
1
|
||||
],
|
||||
run: async (context, args) => {
|
||||
try{
|
||||
await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE })
|
||||
|
||||
try{
|
||||
let pride = await prideborder(context, args.user.avatarUrl + '?size=512')
|
||||
|
||||
return editOrReply(context, {
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: "pride.png"
|
||||
})],
|
||||
files: [{ filename: "pride.png", value: pride.response.body }]
|
||||
})
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
return editOrReply(context, createEmbed("error", context, "Unable to generate overlay."))
|
||||
}
|
||||
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
image: {
|
||||
url: args.user.avatarUrl + '?size=4096'
|
||||
}
|
||||
}))
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue