-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Create teams
util
#5901
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
@milanholemans I have created a Teams-util which covers quite a few of those changes in #5867. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for the heads-up @MathijsVerbeeck. For the overlapping functions, could you align them with the functions in my issue? |
@milanholemans since the implementation kinda started already maybe we should just open it up. |
Sure! |
FYI - I'll start working on this as soon as #5867 is merged as I already use a teams util in here. |
Currently, we have quite some utils:
planner
,entraUser
,entraGroup
, ... One util that's missing here isteams
. We have quite some commands where you can reference a team by name, or a channel by name. This is logic that we could centralize.Suggestion for util functions to add:
getTeamByDisplayName(displayName: string): Promise<Group>
getTeamIdByDisplayName(displayName: string): Promise<string>
getChannelByDisplayName(teamId: string, displayName: string): Promise<Channel>
getChannelIdByDisplayName(teamId: string, displayName: string): Promise<string>
Some things to take into account:
The text was updated successfully, but these errors were encountered: