mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-10 03:08:06 +01:00
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
|
import { InteractionResponseType } from 'discord-api-types/v9';
|
||
|
import { respond } from './respond';
|
||
|
|
||
|
export const badFormatting = (rolesMax?: boolean) => {
|
||
|
return respond({
|
||
|
type: InteractionResponseType.ChannelMessageWithSource,
|
||
|
data: {
|
||
|
flags: 64,
|
||
|
content: `${rolesMax ? 'You can have maximum 25 buttons. (5x5)' : 'Bad formatting, generate [here](https://xhyrom.github.io/roles-bot)'}`
|
||
|
}
|
||
|
});
|
||
|
};
|