Skip to content

Commit 4d0afb6

Browse files
committed
orbit is better https://planetaryapp.us/
1 parent 157ac72 commit 4d0afb6

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/events/interactionCreate.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { Events, Interaction, InteractionType, Client, MessageFlags } from "discord.js";
1+
import {
2+
Events,
3+
Interaction,
4+
InteractionType,
5+
Client,
6+
MessageFlags,
7+
type InteractionReplyOptions,
8+
} from "discord.js";
29

310
export default {
411
name: Events.InteractionCreate,
@@ -18,9 +25,11 @@ export default {
1825
} catch (err) {
1926
console.error(err);
2027

21-
const msg = {
28+
const flags = MessageFlags.Ephemeral as InteractionReplyOptions["flags"];
29+
30+
const msg: InteractionReplyOptions = {
2231
content: "Something went wrong.",
23-
flags: MessageFlags.Ephemeral,
32+
flags,
2433
};
2534

2635
if (interaction.replied || interaction.deferred) {

0 commit comments

Comments
 (0)