dev: small cleanup of utility.cs

This commit is contained in:
Kwoth
2024-08-16 23:58:25 +00:00
parent f764a650da
commit e314686a03

View File

@@ -223,16 +223,6 @@ public partial class Utility : NadekoModule
await Response().Confirm(builder.ToString()).SendAsync();
}
// [Cmd]
// [RequireContext(ContextType.Guild)]
// [RequireUserPermission(GuildPermission.ManageRoles)]
// public async Task CheckPerms(SocketRole role, string perm = null)
// {
// ChannelPermissions.
// var perms = ((ITextChannel)ctx.Channel);
// await SendPerms(perms)
// }
[Cmd]
[RequireContext(ContextType.Guild)]
public async Task UserId([Leftover] IGuildUser? target = null)
@@ -337,8 +327,7 @@ public partial class Utility : NadekoModule
if (string.IsNullOrWhiteSpace(ownerIds))
ownerIds = "-";
await Response()
.Embed(_sender.CreateEmbed()
var eb = _sender.CreateEmbed()
.WithOkColor()
.WithAuthor($"NadekoBot v{StatsService.BotVersion}",
"https://nadeko-pictures.nyc3.digitaloceanspaces.com/other/avatar.png",
@@ -361,7 +350,10 @@ public partial class Utility : NadekoModule
GetText(strs.presence_txt(_coord.GetGuildCount(),
_stats.TextChannels,
_stats.VoiceChannels)),
true))
true);
await Response()
.Embed(eb)
.SendAsync();
}