mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
update error messages and get guild name
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user