Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //sorry for spacing inconsistencies, i typed on mobile
- using System.Linq;
- Public async Task GetMsgAttachments(SocketMessage msg)
- {
- For (int i = 0, i <= msg.Attachments.Count, i++)
- {
- // you can replace FileName with whatever property you need
- Var atch = msg.Attachments.ElementAt(i).FileName
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement