mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 19:07:16 -04:00
use proper constants for contexts and types
This commit is contained in:
parent
6c1120a6ef
commit
ad5c680f86
25 changed files with 121 additions and 143 deletions
|
@ -9,7 +9,7 @@ const { link, citation, icon, smallPill, pill, codeblock } = require('#utils/mar
|
|||
const { editOrReply } = require('#utils/message')
|
||||
const { STATICS } = require('#utils/statics')
|
||||
|
||||
const { ApplicationCommandOptionTypes } = require('detritus-client/lib/constants');
|
||||
const { ApplicationCommandOptionTypes, InteractionContextTypes, ApplicationIntegrationTypes } = require('detritus-client/lib/constants');
|
||||
|
||||
function renderFooter(context, doodle){
|
||||
if(doodle.super_g) return {
|
||||
|
@ -238,12 +238,12 @@ module.exports = {
|
|||
name: 'google',
|
||||
description: 'Search Google for websites.',
|
||||
contexts: [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
InteractionContextTypes.GUILD,
|
||||
InteractionContextTypes.PRIVATE_CHANNEL,
|
||||
InteractionContextTypes.BOT_DM
|
||||
],
|
||||
integrationTypes: [
|
||||
1
|
||||
ApplicationIntegrationTypes.USER_INSTALL
|
||||
],
|
||||
options: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue