mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
16 lines
416 B
TypeScript
16 lines
416 B
TypeScript
import {
|
|
InteractionCallbackType,
|
|
InteractionRequestCommand,
|
|
InteractionResponse,
|
|
} from '@roleypoly/types';
|
|
|
|
export const helloWorld = async (
|
|
interaction: InteractionRequestCommand
|
|
): Promise<InteractionResponse> => {
|
|
return {
|
|
type: InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE,
|
|
data: {
|
|
content: `Hey there, ${interaction.member?.nick || interaction.user?.username}`,
|
|
},
|
|
};
|
|
};
|