浏览代码

Use struct method receiver instead

ayn2op 3 年之前
父节点
当前提交
9d6326f0f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      state.go

+ 1 - 1
state.go

@@ -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