added embed for /hilfe
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import { SlashCommandBuilder } from "discord.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const Commands = z.enum(["giessen", "medikamente"]);
|
||||
export type CommandsType = z.output<typeof Commands>;
|
||||
|
||||
export default function getCommands() {
|
||||
const commands = [
|
||||
new SlashCommandBuilder()
|
||||
.setName(Commands.Enum.giessen)
|
||||
.setDescription("giess mich mit etwas wasser :3"),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName(Commands.Enum.medikamente)
|
||||
.setDescription("ich erinnere dich gerne daran, deine medikamente zu nehmen! :)"),
|
||||
].map((command) => command.toJSON());
|
||||
|
||||
return commands;
|
||||
}
|
||||
24
src/components/index.ts
Normal file
24
src/components/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { EmbedBuilder } from "discord.js";
|
||||
import { Commands, CommandsMeta } from "commands";
|
||||
|
||||
export default function getEmbed() { // channel.send({ embeds: [exampleEmbed] });
|
||||
const exampleEmbed = new EmbedBuilder()
|
||||
.setColor(0x0099FF)
|
||||
.setTitle('Some title')
|
||||
.setURL('https://discord.js.org/')
|
||||
.setAuthor({ name: 'Some name', iconURL: 'https://i.imgur.com/AfFp7pu.png', url: 'https://discord.js.org' })
|
||||
.setDescription('Some description here')
|
||||
.setThumbnail('https://i.imgur.com/AfFp7pu.png')
|
||||
.addFields(
|
||||
{ name: Commands.Enum.giessen, value: CommandsMeta.giessen.description },
|
||||
{ name: Commands.Enum.medikamente, value: CommandsMeta.medikamente.description },
|
||||
{ name: Commands.Enum.hilfe, value: CommandsMeta.hilfe.description },
|
||||
{ name: '\u200B', value: '\u200B' },
|
||||
{ name: 'Inline field title', value: 'Some value here', inline: true },
|
||||
)
|
||||
.addFields({ name: 'Inline field title', value: 'Some value here', inline: true })
|
||||
.setImage('https://i.imgur.com/AfFp7pu.png')
|
||||
.setTimestamp()
|
||||
.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/AfFp7pu.png' });
|
||||
return exampleEmbed;
|
||||
}
|
||||
Reference in New Issue
Block a user