update error messages and get guild name

This commit is contained in:
Owen
2025-01-15 20:41:47 +01:00
committed by Owen Rees
parent 617b64eae2
commit ac513edac8
5 changed files with 55 additions and 13 deletions
+8
View File
@@ -0,0 +1,8 @@
defmodule PlantIdDiscordBot.Guild do
alias Nostrum.Cache.GuildCache
def get_guild_name!(guild_id) do
%{name: guild_name} = GuildCache.get!(guild_id)
guild_name
end
end