mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 11:29:12 +00:00
* feat: add discord interactions worker * feat(interactions): update CI/CD and terraform to add interactions * chore: fix lint issues * chore: fix build & emulation * fix(interactions): deployment + handler * chore: remove worker-dist via gitignore * feat: add /pickable-roles and /pick-role basis * feat: add pick, remove, and update the general /roleypoly command * fix: lint missing Member import
29 lines
843 B
TypeScript
29 lines
843 B
TypeScript
import {
|
|
InteractionCallbackType,
|
|
InteractionFlags,
|
|
InteractionResponse,
|
|
} from '@roleypoly/types';
|
|
|
|
export const mustBeInGuild = (): InteractionResponse => ({
|
|
type: InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE,
|
|
data: {
|
|
content: ':x: This command has to be used in a server.',
|
|
flags: InteractionFlags.EPHEMERAL,
|
|
},
|
|
});
|
|
|
|
export const invalid = (): InteractionResponse => ({
|
|
type: InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE,
|
|
data: {
|
|
content: ':x: You filled that command out wrong...',
|
|
flags: InteractionFlags.EPHEMERAL,
|
|
},
|
|
});
|
|
|
|
export const somethingWentWrong = (): InteractionResponse => ({
|
|
type: InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE,
|
|
data: {
|
|
content: '<a:promareFlame:624850108667789333> Something went terribly wrong.',
|
|
flags: InteractionFlags.EPHEMERAL,
|
|
},
|
|
});
|