mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: added Ouath function
This commit is contained in:
parent
02ffac0158
commit
6016907d0e
@ -1,4 +1,4 @@
|
||||
import { ImageOptions } from '../types'
|
||||
import { ImageOptions } from '@types'
|
||||
import { makeImageURL } from './Tools'
|
||||
|
||||
export const Status = {
|
||||
@ -104,6 +104,9 @@ export const DiscordEnpoints = {
|
||||
}
|
||||
}
|
||||
|
||||
export const Oauth = {
|
||||
discord: (clientID: string, scope: string) => `https://discord.com/oauth2/authorize?client_id=${clientID}&scope=${scope}&permissions=0&response_type=code&redirect_uri=${process.env.KOREANBOTS_URL}/api/auth/discord/callback&prompt=none`
|
||||
}
|
||||
export const git = { 'github.com': { icon: 'github', text: 'Github' }, 'gitlab.com': { icon: 'gitlab', text: 'Gitlab' }}
|
||||
|
||||
export const ErrorText = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user