diff --git a/src/utils/ensureGuildExists.ts b/src/utils/ensureGuildExists.ts deleted file mode 100644 index 276b03c..0000000 --- a/src/utils/ensureGuildExists.ts +++ /dev/null @@ -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; -} diff --git a/src/utils/ensureUserExists.ts b/src/utils/ensureUserExists.ts deleted file mode 100644 index 54bac32..0000000 --- a/src/utils/ensureUserExists.ts +++ /dev/null @@ -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; -}