[GH-ISSUE #2] Some code to help you #1

Closed
opened 2026-09-02 13:08:54 +02:00 by TheLovinator · 0 comments
Owner

Originally created by @GitHubEmploy on GitHub (Jan 20, 2021).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/2

Hey, I saw the TODO that said add support for usernames, so I made this.

IDs = ['MohitVarikuti', 'TarzanTrades', 'CNBC'] 
for index, item in enumerate(IDs):
    IDs[index] = api.get_user(item).id_str

This converts names to IDs

Originally created by @GitHubEmploy on GitHub (Jan 20, 2021). Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/2 Hey, I saw the TODO that said add support for usernames, so I made this. ```python IDs = ['MohitVarikuti', 'TarzanTrades', 'CNBC'] for index, item in enumerate(IDs): IDs[index] = api.get_user(item).id_str ``` This converts names to IDs
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TheLovinator/discord-twitter-webhooks#1
No description provided.