浏览代码

Add Token to user struct, and some gofmt.

Bruce Marriner 8 年之前
父节点
当前提交
88492a1dcf
共有 1 个文件被更改,包括 24 次插入23 次删除
  1. 24 23
      structs.go

+ 24 - 23
structs.go

@@ -239,8 +239,9 @@ type User struct {
 	Email         string `json:"email"`
 	Username      string `json:"username"`
 	Avatar        string `json:"Avatar"`
-	Verified      bool   `json:"verified"`
 	Discriminator string `json:"discriminator"`
+	Token         string `json:"token"`
+	Verified      bool   `json:"verified"`
 	Bot           bool   `json:"bot"`
 }
 
@@ -399,27 +400,27 @@ const (
 	PermissionManageChannels
 	PermissionManageServer
 
-	PermissionAllText    = PermissionReadMessages |
-	                       PermissionSendMessages |
-	                       PermissionSendTTSMessages |
-	                       PermissionManageMessages |
-	                       PermissionEmbedLinks |
-	                       PermissionAttachFiles |
-	                       PermissionReadMessageHistory |
-	                       PermissionMentionEveryone
-	PermissionAllVoice   = PermissionVoiceConnect |
-	                       PermissionVoiceSpeak |
-	                       PermissionVoiceMuteMembers |
-	                       PermissionVoiceDeafenMembers |
-	                       PermissionVoiceMoveMembers |
-	                       PermissionVoiceUseVAD
+	PermissionAllText = PermissionReadMessages |
+		PermissionSendMessages |
+		PermissionSendTTSMessages |
+		PermissionManageMessages |
+		PermissionEmbedLinks |
+		PermissionAttachFiles |
+		PermissionReadMessageHistory |
+		PermissionMentionEveryone
+	PermissionAllVoice = PermissionVoiceConnect |
+		PermissionVoiceSpeak |
+		PermissionVoiceMuteMembers |
+		PermissionVoiceDeafenMembers |
+		PermissionVoiceMoveMembers |
+		PermissionVoiceUseVAD
 	PermissionAllChannel = PermissionAllText |
-	                       PermissionAllVoice |
-	                       PermissionCreateInstantInvite |
-	                       PermissionManageRoles |
-	                       PermissionManageChannels
-	PermissionAll        = PermissionAllChannel |
-	                       PermissionKickMembers |
-	                       PermissionBanMembers |
-	                       PermissionManageServer
+		PermissionAllVoice |
+		PermissionCreateInstantInvite |
+		PermissionManageRoles |
+		PermissionManageChannels
+	PermissionAll = PermissionAllChannel |
+		PermissionKickMembers |
+		PermissionBanMembers |
+		PermissionManageServer
 )