public static async Task SendPM(IDiscordUser user, IDiscordEmbed embed, DatabaseSettingId settingId = DatabaseSettingId.PERSONALMESSAGE) { if (CanSendNotification(user.Id, settingId)) { await embed.QueueToUser(user); } }
public static async Task SendPM(ulong userId, IDiscordEmbed embed, DatabaseSettingId settingId = DatabaseSettingId.PERSONALMESSAGE) { IUser m = Bot.instance.Client.GetUser(userId); IDiscordUser user = new RuntimeUser(m); if (CanSendNotification(userId, settingId)) { await embed.QueueToUser(user); } }