added ability to create DMs - thx ImperialCrise for bringing this up
bot.createDM(['userID'])
bot.createDM(['userID_1', 'userID_2'])
If you happen to get a response 400 (Cannot send messages to this user, code 50007), it means you're either not friends with them, they're not in a mutual server with you, or they're blocking messages.
@@ -531,6 +531,10 @@ class Client:
'''
Messages
'''
+ #create DM
+ def createDM(self,recipients):
+ return Messages(self.discord,self.s).createDM(recipients)
+
#get recent messages
def getMessages(self,channelID,num=1,beforeDate=None): # num <= 100, beforeDate is a snowflake
return Messages(self.discord,self.s).getMessages(channelID,num,beforeDate)
