示例#1
0
文件: Bot.cs 项目: Tearth/SKNIBot
        private async Task DiscordClient_UserJoinedAsync(DiscordClient client, DSharpPlus.EventArgs.GuildMemberAddEventArgs e)
        {
            WelcomeMessageHandler welcomeMessageHandler = new WelcomeMessageHandler(client.GetCommandsNext().Services.GetService <WelcomeMessageService>());

            welcomeMessageHandler.SendWelcomeMessage(client, e);
        }
 public void Init()
 {
     contextMock = new Mock <MessageContext>();
     handler     = new WelcomeMessageHandler();
 }