Skip to content

Commit

Permalink
fix: get guild not on client
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXTQ committed Dec 9, 2024
1 parent cc920ea commit 2c1a651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DiscordLab.ConnectionLogs/Handlers/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void Unregister()

public SocketGuild GetGuild()
{
return Bot.Handlers.DiscordBot.Instance.Client.GetGuild(Plugin.Instance.Config.GuildId);
return Bot.Handlers.DiscordBot.Instance.GetGuild(Plugin.Instance.Config.GuildId);
}

public SocketTextChannel GetJoinChannel()
Expand Down
2 changes: 1 addition & 1 deletion DiscordLab.DeathLogs/Handlers/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Unregister()

public SocketGuild GetGuild()
{
return Bot.Handlers.DiscordBot.Instance.Client.GetGuild(Plugin.Instance.Config.GuildId);
return Bot.Handlers.DiscordBot.Instance.GetGuild(Plugin.Instance.Config.GuildId);
}

public SocketTextChannel GetChannel()
Expand Down

0 comments on commit 2c1a651

Please sign in to comment.