Open aleperuz opened 1 year ago
I was able to workaround by changing the getMessages function in discum.py to:
def getMessages(self, channelID, num=1, beforeDate=None, aroundMessage=None, afterMessage=None):
return imports.Messages(self.discord, self.s, self.log).getMessages(channelID, num, beforeDate, aroundMessage)
and changing getMessages function of messages.py to:
def getMessages(self, channelID, num, beforeDate, aroundMessage):
url = self.discord + "channels/" + channelID + "/messages?limit=" + str(num)
if beforeDate != None:
url += "&before=" + str(beforeDate)
elif aroundMessage != None:
url += "&around=" + str(aroundMessage)
return Wrapper.sendRequest(self.s, 'get', url, log=self.log)
I wanted to send a message and I read the docs, but i have an error on the function "createDM".
Error:
Function that i use to send messages: