1 parent 2296327 commit c561cc6Copy full SHA for c561cc6
1 file changed
pkg/discord/bot.go
@@ -1683,13 +1683,17 @@ func encodeAction(action Action, mediaID *media.ID) string {
1683
1684
func uniqueUser(m *discordgo.Member, u *discordgo.User) string {
1685
userName := "unknown"
1686
+ id := "unknown"
1687
if m != nil {
1688
userName = m.DisplayName()
1689
+ id = shortID(m.User.ID)
1690
}
1691
if userName == "" && u != nil {
1692
userName = u.Username
1693
+ id = shortID(u.ID)
1694
- return userName + " (" + shortID(m.User.ID) + ")"
1695
+
1696
+ return userName + " (" + id + ")"
1697
1698
1699
func shortID(longID string) string {
0 commit comments