Added .crinv command
This commit is contained in:
@@ -251,6 +251,17 @@ namespace NadekoBot.Modules.Utility
|
||||
await channel.SendConfirmAsync("Channel topic", topic);
|
||||
}
|
||||
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
[RequireBotPermission(ChannelPermission.CreateInstantInvite)]
|
||||
[RequireUserPermission(ChannelPermission.CreateInstantInvite)]
|
||||
public async Task CreateInvite()
|
||||
{
|
||||
var invite = await ((ITextChannel)Context.Channel).CreateInviteAsync(0, null, isUnique: true);
|
||||
|
||||
await Context.Channel.SendConfirmAsync($"{Context.User.Mention} https://discord.gg/{invite.Code}");
|
||||
}
|
||||
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
public async Task Stats()
|
||||
{
|
||||
|
Reference in New Issue
Block a user