feat: ⚰️ remove unused code
this is really a feature just to check if CI works correctly
This commit is contained in:
parent
61af819a54
commit
66ed4466a1
2 changed files with 0 additions and 20 deletions
|
@ -1,10 +0,0 @@
|
|||
import { Guild, Interaction } from "discord.js";
|
||||
|
||||
export default function ensureGuildExists(interaction: Interaction): Guild {
|
||||
if (!interaction.guild) {
|
||||
throw new Error(
|
||||
"Oops! It looks like you're not part of a guild. Join a guild to embark on this adventure!"
|
||||
);
|
||||
}
|
||||
return interaction.guild;
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
import { Interaction, User } from "discord.js";
|
||||
|
||||
export default function ensureUserExists(interaction: Interaction): User {
|
||||
if (!interaction.user) {
|
||||
throw new Error(
|
||||
"Oops! We couldn't find your user information. Please try again or contact support for assistance."
|
||||
);
|
||||
}
|
||||
return interaction.user;
|
||||
}
|
Loading…
Add table
Reference in a new issue