Advertisement
VynxDev

Untitled

Oct 2nd, 2021
1,685
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Async Function onUserJoined(arg As SocketGuildUser) As Task
  2.  
  3.         Try
  4.             Dim channel = arg.Guild.GetTextChannel(idGoesHere)
  5.             Dim path = Await _images.createImageAsync(arg)
  6.             Await channel.SendFileAsync(path, String.Empty)
  7.  
  8.             File.Delete(path)
  9.         Catch ex As Exception
  10.             loggingHandler.LogTxtException("UserJoined", ex)
  11.         End Try
  12.     End Function
Advertisement
RAW Paste Data Copied
Advertisement