mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
21 lines
613 B
TypeScript
21 lines
613 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 somethingWentWrong = (): InteractionResponse => ({
|
|
type: InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE,
|
|
data: {
|
|
content: '<a:promareFlame:624850108667789333> Something went terribly wrong.',
|
|
flags: InteractionFlags.EPHEMERAL,
|
|
},
|
|
});
|