feat: ⚰️ remove unused code

this is really a feature just to check if CI works correctly
This commit is contained in:
Axel Olausson Holtenäs 2023-10-01 17:22:45 +02:00
parent 61af819a54
commit 66ed4466a1
2 changed files with 0 additions and 20 deletions

View file

@ -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;
}

View file

@ -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;
}