Advertisement
halfordC

Discord.net weird Bug

Feb 3rd, 2023
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. IUserMessage messageGet = await messageIn.GetOrDownloadAsync();
  2. IMessageChannel channelGet = await channelIn.GetOrDownloadAsync();
  3.  
  4. ulong messageUserId = messageGet.Author.Id;
  5.  
  6. //This call always seems to come back null if user is offline. Not sure if this is intended or not.
  7. var messageUser = await channelGet.GetUserAsync(messageUserId, CacheMode.AllowDownload) as SocketGuildUser;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement