-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOwnerNotifier.cs
More file actions
19 lines (17 loc) · 1.06 KB
/
Copy pathIOwnerNotifier.cs
File metadata and controls
19 lines (17 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace RustPlusBot.Features.Pairing.Notifications;
/// <summary>Notifies a credential owner out-of-band (e.g. by DM) when action is needed.</summary>
internal interface IOwnerNotifier
{
/// <summary>Tells the owner their FCM credentials expired and to reconnect.</summary>
/// <param name="guildId">The guild the registration belongs to.</param>
/// <param name="ownerUserId">The Discord user to notify.</param>
/// <param name="cancellationToken">A cancellation token.</param>
Task NotifyCredentialsExpiredAsync(ulong guildId, ulong ownerUserId, CancellationToken cancellationToken = default);
/// <summary>Tells the owner a server pairing arrived but no #setup channel exists to prompt in.</summary>
/// <param name="guildId">The guild the pairing belongs to.</param>
/// <param name="ownerUserId">The Discord user to notify.</param>
/// <param name="cancellationToken">A cancellation token.</param>
Task NotifySetupChannelMissingAsync(ulong guildId,
ulong ownerUserId,
CancellationToken cancellationToken = default);
}