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(); }