From c40b9753542ab8a3cce8bd949a3dea67b5a38b70 Mon Sep 17 00:00:00 2001 From: LEGOlord208 Date: Fri, 28 Apr 2017 21:34:30 +0200 Subject: [PATCH] STOP USING PRINTF PLS --- user.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/user.go b/user.go index b3a7e4b..cdc8a85 100644 --- a/user.go +++ b/user.go @@ -1,7 +1,5 @@ package discordgo -import "fmt" - // A User stores all data for an individual Discord user. type User struct { ID string `json:"id"` @@ -17,10 +15,10 @@ type User struct { // String returns a unique identifier of the form username#discriminator func (u *User) String() string { - return fmt.Sprintf("%s#%s", u.Username, u.Discriminator) + return u.Username + "#" + u.Discriminator } // Mention return a string which mentions the user func (u *User) Mention() string { - return fmt.Sprintf("<@%s>", u.ID) + return "<@" + u.ID + ">" }