Updated Expressions module
This commit is contained in:
parent
00f8c70de0
commit
eb1ebc72db
4 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
#nullable disable
|
||||
#nullable disable
|
||||
using EllieBot.Db.Models;
|
||||
|
||||
namespace EllieBot.Modules.EllieExpressions;
|
||||
|
|
|
@ -124,11 +124,11 @@ public sealed class EllieExpressionsService : IExecOnMessage, IReadyExecutor
|
|||
newguildExpressions = guildItems.GroupBy(k => k.GuildId!.Value)
|
||||
.ToDictionary(g => g.Key,
|
||||
g => g.Select(x =>
|
||||
{
|
||||
x.Trigger = x.Trigger.Replace(MENTION_PH,
|
||||
_client.CurrentUser.Mention);
|
||||
return x;
|
||||
})
|
||||
{
|
||||
x.Trigger = x.Trigger.Replace(MENTION_PH,
|
||||
_client.CurrentUser.Mention);
|
||||
return x;
|
||||
})
|
||||
.ToArray())
|
||||
.ToConcurrent();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#nullable disable
|
||||
#nullable disable
|
||||
using EllieBot.Db.Models;
|
||||
|
||||
namespace EllieBot.Modules.EllieExpressions;
|
||||
|
|
Loading…
Reference in a new issue