SelfAssignedRoles no longer have hardcoded prefixes, thx Draconic Sleepyhead
This commit is contained in:
parent
5dadfb4deb
commit
3a9de38b86
@ -13,7 +13,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
public SelfAssignedRolesCommand(DiscordModule module) : base(module) { }
|
public SelfAssignedRolesCommand(DiscordModule module) : base(module) { }
|
||||||
internal override void Init(CommandGroupBuilder cgb)
|
internal override void Init(CommandGroupBuilder cgb)
|
||||||
{
|
{
|
||||||
cgb.CreateCommand(".asar")
|
cgb.CreateCommand(Module.Prefix + "asar")
|
||||||
.Description("Adds a role, or list of roles separated by whitespace" +
|
.Description("Adds a role, or list of roles separated by whitespace" +
|
||||||
"(use quotations for multiword roles) to the list of self-assignable roles.\n**Usage**: .asar Gamer")
|
"(use quotations for multiword roles) to the list of self-assignable roles.\n**Usage**: .asar Gamer")
|
||||||
.Parameter("roles", ParameterType.Multiple)
|
.Parameter("roles", ParameterType.Multiple)
|
||||||
@ -41,7 +41,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
await e.Channel.SendMessage(msg.ToString()).ConfigureAwait(false);
|
await e.Channel.SendMessage(msg.ToString()).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".rsar")
|
cgb.CreateCommand(Module.Prefix + "rsar")
|
||||||
.Description("Removes a specified role from the list of self-assignable roles.")
|
.Description("Removes a specified role from the list of self-assignable roles.")
|
||||||
.Parameter("role", ParameterType.Unparsed)
|
.Parameter("role", ParameterType.Unparsed)
|
||||||
.AddCheck(SimpleCheckers.CanManageRoles)
|
.AddCheck(SimpleCheckers.CanManageRoles)
|
||||||
@ -66,7 +66,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
await e.Channel.SendMessage($":ok:**{role.Name}** has been removed from the list of self-assignable roles").ConfigureAwait(false);
|
await e.Channel.SendMessage($":ok:**{role.Name}** has been removed from the list of self-assignable roles").ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".lsar")
|
cgb.CreateCommand(Module.Prefix + "lsar")
|
||||||
.Description("Lits all self-assignable roles.")
|
.Description("Lits all self-assignable roles.")
|
||||||
.Parameter("roles", ParameterType.Multiple)
|
.Parameter("roles", ParameterType.Multiple)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
@ -94,7 +94,7 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
await e.Channel.SendMessage(msg.ToString()).ConfigureAwait(false);
|
await e.Channel.SendMessage(msg.ToString()).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".iam")
|
cgb.CreateCommand(Module.Prefix + "iam")
|
||||||
.Description("Adds a role to you that you choose. " +
|
.Description("Adds a role to you that you choose. " +
|
||||||
"Role must be on a list of self-assignable roles." +
|
"Role must be on a list of self-assignable roles." +
|
||||||
"\n**Usage**: .iam Gamer")
|
"\n**Usage**: .iam Gamer")
|
||||||
@ -132,8 +132,8 @@ namespace NadekoBot.Modules.Administration.Commands
|
|||||||
catch { }
|
catch { }
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".iamn")
|
cgb.CreateCommand(Module.Prefix + "iamn")
|
||||||
.Alias(".iamnot")
|
.Alias(Module.Prefix + "iamnot")
|
||||||
.Description("Removes a role to you that you choose. " +
|
.Description("Removes a role to you that you choose. " +
|
||||||
"Role must be on a list of self-assignable roles." +
|
"Role must be on a list of self-assignable roles." +
|
||||||
"\n**Usage**: .iamn Gamer")
|
"\n**Usage**: .iamn Gamer")
|
||||||
|
Loading…
Reference in New Issue
Block a user