public bool UpsertReactionMessage(ulong channelId, ulong messageId, ReactionRuleModelBase rule) { if (!_reactionChannels.TryGetValue(channelId, out var channel)) { channel = new ChannelReactionRole(); _reactionChannels.TryAdd(channelId, channel); } return(channel.UpsertReactionMessage(messageId, rule)); }
public bool UpsertReactionMessage(ulong messageId, ReactionRuleModelBase rule) { _reactionMessages[messageId] = rule; return(true); }