mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
dev: small cleanup of utility.cs
This commit is contained in:
@@ -223,16 +223,6 @@ public partial class Utility : NadekoModule
|
|||||||
await Response().Confirm(builder.ToString()).SendAsync();
|
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]
|
[Cmd]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
public async Task UserId([Leftover] IGuildUser? target = null)
|
public async Task UserId([Leftover] IGuildUser? target = null)
|
||||||
@@ -337,8 +327,7 @@ public partial class Utility : NadekoModule
|
|||||||
if (string.IsNullOrWhiteSpace(ownerIds))
|
if (string.IsNullOrWhiteSpace(ownerIds))
|
||||||
ownerIds = "-";
|
ownerIds = "-";
|
||||||
|
|
||||||
await Response()
|
var eb = _sender.CreateEmbed()
|
||||||
.Embed(_sender.CreateEmbed()
|
|
||||||
.WithOkColor()
|
.WithOkColor()
|
||||||
.WithAuthor($"NadekoBot v{StatsService.BotVersion}",
|
.WithAuthor($"NadekoBot v{StatsService.BotVersion}",
|
||||||
"https://nadeko-pictures.nyc3.digitaloceanspaces.com/other/avatar.png",
|
"https://nadeko-pictures.nyc3.digitaloceanspaces.com/other/avatar.png",
|
||||||
@@ -361,7 +350,10 @@ public partial class Utility : NadekoModule
|
|||||||
GetText(strs.presence_txt(_coord.GetGuildCount(),
|
GetText(strs.presence_txt(_coord.GetGuildCount(),
|
||||||
_stats.TextChannels,
|
_stats.TextChannels,
|
||||||
_stats.VoiceChannels)),
|
_stats.VoiceChannels)),
|
||||||
true))
|
true);
|
||||||
|
|
||||||
|
await Response()
|
||||||
|
.Embed(eb)
|
||||||
.SendAsync();
|
.SendAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user