|
using Discord;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Sean
|
|
{
|
|
public static class UserExtensions
|
|
{
|
|
public static string Nick(this IUser user) {
|
|
if (user is IGuildUser gu)
|
|
return gu.Nickname ?? gu.Username;
|
|
else
|
|
return user.Username;
|
|
}
|
|
}
|
|
}
|