mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-12 05:06:14 +00:00
Link bot spam channel in !explain
This commit is contained in:
parent
66595ba281
commit
ed8a3b6ec4
@ -24,7 +24,8 @@ namespace CompatBot.Commands
|
||||
await ctx.TriggerTypingAsync().ConfigureAwait(false);
|
||||
if (string.IsNullOrEmpty(term))
|
||||
{
|
||||
await ctx.RespondAsync($"You may want to look at available terms by using `{Config.CommandPrefix}explain list` in a bot spam channel or bot DMs").ConfigureAwait(false);
|
||||
var spamChannel = await ctx.Client.GetChannelAsync(Config.BotSpamId).ConfigureAwait(false);
|
||||
await ctx.RespondAsync($"You may want to look at available terms by using `{Config.CommandPrefix}explain list` in {spamChannel.Mention} or bot DMs").ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -66,7 +67,8 @@ namespace CompatBot.Commands
|
||||
}
|
||||
}
|
||||
|
||||
await ctx.RespondAsync($"Unknown term `{term.Sanitize()}`. Use `!explain list` to look at defined terms in a bot spam channel or bot DMs").ConfigureAwait(false);
|
||||
var spamCh = await ctx.Client.GetChannelAsync(Config.BotSpamId).ConfigureAwait(false);
|
||||
await ctx.RespondAsync($"Unknown term `{term.Sanitize()}`. Use `!explain list` to look at defined terms in {spamCh.Mention} or bot DMs").ConfigureAwait(false);
|
||||
}
|
||||
|
||||
[Command("add"), RequiresBotModRole]
|
||||
|
Loading…
Reference in New Issue
Block a user