Use struct method receiver instead

This commit is contained in:
ayn2op 2023-01-27 14:37:47 +05:30
parent 5466aa84b1
commit 9d6326f0f1

View file

@ -65,7 +65,7 @@ func (s *State) onReady(r *gateway.ReadyEvent) {
for _, gf := range r.UserSettings.GuildFolders {
/// If the ID of the guild folder is zero, the guild folder only contains single guild.
if gf.ID == 0 {
g, err := discordState.Cabinet.Guild(gf.GuildIDs[0])
g, err := s.Cabinet.Guild(gf.GuildIDs[0])
if err != nil {
log.Println(err)
continue