Fixed .xpex command help, .xpex channel will now default to current channel
This commit is contained in:
parent
6b896d8091
commit
b9f22df756
@ -130,8 +130,11 @@ namespace NadekoBot.Modules.Xp
|
|||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireUserPermission(GuildPermission.ManageChannels)]
|
[RequireUserPermission(GuildPermission.ManageChannels)]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
public async Task XpExclude(Channel _, [Remainder] ITextChannel channel)
|
public async Task XpExclude(Channel _, [Remainder] ITextChannel channel = null)
|
||||||
{
|
{
|
||||||
|
if (channel == null)
|
||||||
|
channel = (ITextChannel)Context.Channel;
|
||||||
|
|
||||||
var ex = _service.ToggleExcludeChannel(Context.Guild.Id, channel.Id);
|
var ex = _service.ToggleExcludeChannel(Context.Guild.Id, channel.Id);
|
||||||
|
|
||||||
await ReplyConfirmLocalized((ex ? "excluded" : "not_excluded"), Format.Bold(channel.ToString())).ConfigureAwait(false);
|
await ReplyConfirmLocalized((ex ? "excluded" : "not_excluded"), Format.Bold(channel.ToString())).ConfigureAwait(false);
|
||||||
|
@ -3595,7 +3595,7 @@
|
|||||||
<value>xpexclude xpex</value>
|
<value>xpexclude xpex</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="xpexclude_usage" xml:space="preserve">
|
<data name="xpexclude_usage" xml:space="preserve">
|
||||||
<value>`{0}xpex User @b1nzy` `{0}xpex Server`</value>
|
<value>`{0}xpex Role Excluded-Role` `{0}xpex Server`</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="xpexclude_desc" xml:space="preserve">
|
<data name="xpexclude_desc" xml:space="preserve">
|
||||||
<value>Exclude a user or a role from the xp system, or whole current server.</value>
|
<value>Exclude a user or a role from the xp system, or whole current server.</value>
|
||||||
|
Loading…
Reference in New Issue
Block a user